package com.kartoshka.events 
{
	import flash.events.Event;

	/**
	 * @author Alexander Zats, 2009
	 */
	public class KartoshkaProgressEvent extends Event 
	{
		protected var _current : Number;
		protected var _total : Number;
		
		public function KartoshkaProgressEvent( type : String, current : Number, total : Number, bubbles : Boolean = false, cancelable : Boolean = false )
		{
			super( type, bubbles, cancelable );
			_current = current;
			_total = total;
		}

		public function set current( value : Number ) : void
		{
			_current = value;
		}
		
		public function get current() : Number
		{
			return _current;
		}
		
		public function set total( value : Number ) : void
		{
			_total = value;
		}
		
		public function get total() : Number
		{
			return _total;
		}

		override public function toString() : String
		{
			return "[KartoshkaProgressEvent ( type=" + type + ", current=" + _current + ", total=" + _total + " )]";
		}
	}
}
